﻿using Idte.Core.Infrastructure.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AppDesign.Models.ManageType
{
    [AggregateAttribute]
    public class DomainTypes
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public Guid UniqueId { get; set; }
        public string ObjName { get; set; }

        public ICollection<OutsideRelation> OutsideRelation { get; set; }
        [DisableCascade("DomainTypesPar", "DomainParId")]
        public virtual ICollection<DomainRelation> Parent { get; set; }
        [DisableCascade("DomainTypesChild", "DomainChildId")]
        public virtual ICollection<DomainRelation> Children { get; set; }


        public ICollection<DomainLayout> DomainLayout { get; set; }


    }
}